;(function(){
  'use strict';

  /**
   * @ngdoc function
   * @name sasApp.controller:logQueryCtrl
   * @description  日志管理模块(logManage)
   * Controller of the sasApp
   */
  angular.module('controllers.userManager.log')
    .controller('logQueryCtrl',logQueryCtrl);

  /**
    * function [logQueryCtrl] 日志查询
   *
   * @param  {scope}  $scope       [Angular scope]
   * @param  {Server} logServer    [html请求]
   * @param  {Object} logData      [页面需要的数据]
   */
  function logQueryCtrl($scope,logServer,logData){
    //查询条件
    $scope.logCondition = logData.logCondition;
    //查询条件中的时间
    $scope.date = logData.date;
    //页面默认查询
    $scope.htmlData = logServer.getQueryLog();
    //绑定分页查询方法
    $scope.pageQuery = logServer.getQueryLog;
  }
  logQueryCtrl.$inject = ['$scope','logServer','logData'];

})();